package com.wing.cabinet.controller.admin;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.wing.cabinet.model.response.CabinetVO;
import com.wing.common.utils.JsonResult;
import com.wing.common.utils.PageResult;
import com.wing.order.model.response.EnterpriseVO;
import com.wing.order.service.EnterpriseServiceImpl;
import com.wing.web.annotation.AuthPass;
import io.swagger.annotations.Api;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.apache.commons.lang.StringUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@Validated
@RestController("enterpriseWebController")
@RequestMapping("cabinet/admin/enterprise")
@RequiredArgsConstructor
@Slf4j
public class EnterpriseWebController {
    @Autowired
    private EnterpriseServiceImpl enterpriseService;

    @GetMapping("/get")
    public JsonResult get() {
        log.info("cabinet/admin/enterprise/get");
        return JsonResult.success(enterpriseService.getEnterpriseVo());
    }
}
